#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

void *func(void *args)
{
    printf("input is %d\n", *((int *)args)); // 转化为整型
}

int main()
{
    pthread_t tid;
    int n = 3;
    pthread_create(&tid, NULL, func, &n);
    // sleep(1);
    pthread_join(tid, NULL);
    return 1;
}